import axios from 'axios'

// 封装axios
export const get = (url:any) => {
  return new Promise((resolve, reject) => {
    axios.get(url).then(res => {
      resolve(res.data)
    }).catch(err => {
      reject(err.data)
    })
  })
}

